I don't think you got my point, so here is a test case :
That's the XML (the actual is much more complicated !)
<?xml version="1.0" encoding="UTF-8"?>
<newsletter>
<element>
<span class="texte-dispo">this is some text with a <a href="http://www.google.com" target="_new">link to google</a> and then more text.</span>
</element>
</newsletter>
When you run this, it outputs :
Begining
this is some text with a link to google and then more text. (http://www.google.com)
End
What I want to get is :
Begining
this is some text with a link to google (http://www.google.com) and then more text.
End
And I could not find a way to do that...
Thanks
Xavier
No, all this does is getting the URL.
I don't think you got my point, so here is a test case :
That's the XML (the actual is much more complicated !)
<?xml version="1.0" encoding="UTF-8"?>
<newsletter>
<element>
<span class="texte-dispo">this is some text with a <a href="http://www.google.com" target="_new">link to google</a> and then more text.</span>
</element>
</newsletter>
P.S. If I proved to be of some help please boost my reputation.
You're calling in that order in your elements template, first taking the value of the span and then the link.
Using <xsl:apply-templates/> inside a span class is the key to your problems.
<xsl:template match="span[@class='texte-dispo' or @class='texteColGauche-dispo']">
<xsl:apply-templates/>
</xsl:template>
Hi! Xavier
I hope it answers your question.
Cheers,
Sandeep
Innodata-Isogen
P.S. If I proved to be of some help please boost my reputation.
Almost ! Thanks !
I said almost because it does insert a return just after the URL:
Begining
this is some text with a link to google (http://www.google.com)
and then more text.
End